import BasicLayout from '@/layouts/basic-layout';

const meta = {
    auth: true
};

const pre = 'customer-';

export default {
    path: '/customer',
    name: 'customer',
    redirect: {
        name: `${pre}patientList`
    },
    meta,
    component: BasicLayout,
    children: [
        {
            path: 'patientList/whole',
            name: `${pre}patientList`,
            meta: {
                ...meta,
                title: '客服患者'
            },
            component: () => import('@/pages/customer/patientList/whole')
        },
        {
            path: 'patientList/arrived',
            name: `${pre}patientList`,
            meta: {
                ...meta,
                title: '已到'
            },
            component: () => import('@/pages/customer/patientList/arrived')
        },
        {
            path: 'patientList/preArrival',
            name: `${pre}patientList`,
            meta: {
                ...meta,
                title: '预到'
            },
            component: () => import('@/pages/customer/patientList/preArrival')
        },
        {
            path: 'patientList/overdue',
            name: `${pre}patientList`,
            meta: {
                ...meta,
                title: '过期未到'
            },
            component: () => import('@/pages/customer/patientList/overdue')
        },
        {
            path: 'returnVisit/list-need',
            name: `${pre}returnVisit/list-need`,
            meta: {
                ...meta,
                title: '客服回访'
            },
            component: () => import('@/pages/customer/returnVisit/list-need')
        },
        {
            path: 'returnVisit/list-already',
            name: `${pre}returnVisit/list-already`,
            meta: {
                ...meta,
                title: '已回访'
            },
            component: () => import('@/pages/customer/returnVisit/list-already')
        },
        {
            path: 'returnVisit/list-overdue',
            name: `${pre}returnVisit/list-overdue`,
            meta: {
                ...meta,
                title: '过期未回访'
            },
            component: () => import('@/pages/customer/returnVisit/list-overdue')
        },
        {
            path: 'allocation',
            name: `${pre}allocation`,
            meta: {
                ...meta,
                title: '患者分配'
            },
            component: () => import('@/pages/customer/allocation')
        }
    ]
};
